package com.thoughtworks.videorental.action;

import com.opensymphony.xwork2.ActionSupport;
import com.thoughtworks.videorental.domain.Customer;
import com.thoughtworks.videorental.domain.Movie;
import com.thoughtworks.videorental.domain.repository.MovieRepository;
import com.thoughtworks.videorental.interceptor.CustomerAware;

import java.util.Set;

public class MovieAdminAction extends ActionSupport  implements CustomerAware{

	private final MovieRepository movieRepository;
    private Customer customer;

    public MovieAdminAction(final MovieRepository movieRepository) {
		this.movieRepository = movieRepository;
	}
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {

        this.customer = customer;
    }
}
